package com.CMS.client;

import java.util.List;

import com.CMS.server.domain.Page;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("page")
public interface PageService extends RemoteService{
	
	public void create(Page page);

	public void create(String name, String extension, long idLanguage, long idItemMenu, 
						String content,boolean activa, String alias);
	
	public List<Page> fetch();
	
	public List<Page> getVisiblePages();
	
	public Page getPage(long id);
	
	public void update(long id, String name, String extension, long idLanguage, long idItemMenu,
						String content, boolean activa, String alias);
}
